package com.cxso.example.request.sign;


import com.cxso.example.domain.sign.PositionDomain;
import com.cxso.example.domain.sign.SignerInfoDomain;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Getter
@Setter
@Schema(description = "合同签署-坐标签带日期-入参")
public class SignAutoSignDateImageRequest {


    @Schema(description = "合同编号", example = "B007E1835A55FC4D")
    @NotBlank(message = "合同编号不能为空")
    private String contractNum;

    @Schema(description = "合同是否签署完成", example = " 例如合同属于双方合同，第一个人签署时，isFinish 否，当第二个签署时候，参数isFinish为是 0:是,1:否")
    @NotNull(message = "签署完成标志不能为空")
    private Integer isFinish;

    @Schema(description = "签署人信息", example = " 签署人信息")
    @NotNull(message = "签署人信息不能为空")
    @Valid
    private SignerInfoDomain signerInfo;

    @Schema(description = "签章信息体", example = " 签署人信息")
    @NotEmpty(message = "签章信息体不能为空")
    @Valid
    private List<PositionDomain> position;

}
